#pragma once
#include <iostream>
#include <iomanip>
#include <fstream>
#include <vector>
#include <string>

using namespace std;

class MultiMedia
{
private:
	string title;
	int year;


public:
	MultiMedia();
	string& GetTitle();

	bool operator==(MultiMedia& obj2);
	bool operator<(MultiMedia& obj2);
	bool operator>(MultiMedia& obj2);
	friend ostream& operator<<(ostream& stream, MultiMedia& hop);
	friend istream& operator>>(istream& stream, MultiMedia& hop);
	
	~MultiMedia(void);

	//friend bool sortByTitle (const MultiMedia &vop, const MultiMedia &hop) {return &vop.title < &hop.title;}
	//friend bool sortByYear (const MultiMedia &vop, const MultiMedia &hop) {return &vop.year < &hop.year;}

	/*MultiMedia(void);
	MultiMedia(string t, int y);

	~MultiMedia(void);

	void ReadFromConsole();
	void WriteToConsole();

	string GetTitle() { return title; }
	void SetTitle(string t) { title = t; }

	int GetYear() { return year; }
	void SetYear(int y) { year = y; }*/
};

//---Typdefinition
typedef vector<MultiMedia> MultiMediaV;
typedef vector<MultiMedia>::iterator MultiMediaVI;
